/*
 * BasesPanel.java
 *
 * Created on 24. červen 2008, 9:51
 */

package scubalogbook.gui.panels;

import javax.swing.JSplitPane;

/**
 *
 * @author  Administrator
 */
public class BasesPanel extends javax.swing.JPanel {

    /** Creates new form BasesPanel */
    public BasesPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        toolBar = new javax.swing.JToolBar();
        hSplitButton = new javax.swing.JButton();
        vSplitButton = new javax.swing.JButton();
        splitPane = new javax.swing.JSplitPane();

        setName("Form"); // NOI18N

        toolBar.setRollover(true);
        toolBar.setName("toolBar"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(scubalogbook.ScubaLogbookApp.class).getContext().getResourceMap(BasesPanel.class);
        hSplitButton.setIcon(resourceMap.getIcon("hSplitButton.icon")); // NOI18N
        hSplitButton.setToolTipText(resourceMap.getString("hSplitButton.toolTipText")); // NOI18N
        hSplitButton.setFocusable(false);
        hSplitButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        hSplitButton.setName("hSplitButton"); // NOI18N
        hSplitButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        hSplitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                hSplitButtonActionPerformed(evt);
            }
        });
        toolBar.add(hSplitButton);

        vSplitButton.setIcon(resourceMap.getIcon("vSplitButton.icon")); // NOI18N
        vSplitButton.setToolTipText(resourceMap.getString("vSplitButton.toolTipText")); // NOI18N
        vSplitButton.setFocusable(false);
        vSplitButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        vSplitButton.setName("vSplitButton"); // NOI18N
        vSplitButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        vSplitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vSplitButtonActionPerformed(evt);
            }
        });
        toolBar.add(vSplitButton);

        splitPane.setName("splitPane"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(splitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
            .addComponent(toolBar, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(toolBar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(splitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

private void hSplitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hSplitButtonActionPerformed
    splitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
}//GEN-LAST:event_hSplitButtonActionPerformed

private void vSplitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vSplitButtonActionPerformed
    splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
}//GEN-LAST:event_vSplitButtonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton hSplitButton;
    private javax.swing.JSplitPane splitPane;
    private javax.swing.JToolBar toolBar;
    private javax.swing.JButton vSplitButton;
    // End of variables declaration//GEN-END:variables

}
